count = 0
for gong in range(0, 21):
    for muji in range(0, 34):
        xiaoji = 100-gong-muji
        if xiaoji < 0:
            continue

        if 5 * gong + 3 * muji + xiaoji / 3 == 100:
            count += 1
            print(f"方案{count}: 公鸡{gong}只, 母鸡{muji}只, 小鸡{xiaoji}只")

print("一共有", count,"种买法")
